作者:手机用户2502924457 | 来源:互联网 | 2023-10-13 12:38
一、NodeJS自动发版###---Jenkins执行NodeJS自动发版#~~~Jenkins——Dashboard——Deploy:true——Build——END二、
一、NodeJS自动发版
### --- Jenkins执行NodeJS自动发版#
~~~ Jenkins——>Dashboard——>Deploy:true——>Build——>END
二、查看镜像制作过程
### --- 通过pod制作镜像
[root@k8s-master01 NodeJS]# kubectl get po -owide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
nodejs-demo-5-8njrf-1k4jg-9f0rb 4/4 Running 0 12s 172.17.125.49 k8s-node01
三、查看流水线启动过程
### --- 查看流水线发版过程
[root@k8s-master01 NodeJS]# kubectl get po -l app=nodejs-demo -n nodejs-test -w
NAME READY STATUS RESTARTS AGE
nodejs-demo-564d56bc95-2pzq8 1/1 Running 0 2m19s
nodejs-demo-7c8578b4d4-bt2dp 0/1 Pending 0 0s
nodejs-demo-7c8578b4d4-bt2dp 0/1 Pending 0 0s
nodejs-demo-7c8578b4d4-bt2dp 0/1 ContainerCreating 0 0s
nodejs-demo-7c8578b4d4-bt2dp 0/1 Running 0 22s
nodejs-demo-7c8578b4d4-bt2dp 1/1 Running 0 57s
nodejs-demo-564d56bc95-2pzq8 1/1 Terminating 0 5m23s
nodejs-demo-564d56bc95-2pzq8 0/1 Terminating 0 5m53s
nodejs-demo-564d56bc95-2pzq8 0/1 Terminating 0 5m54s
nodejs-demo-564d56bc95-2pzq8 0/1 Terminating 0 5m54s
四、查看构建的NodeJS应用
### --- 查看自动化构建的NodeJS应用
~~~ 新的pod已经创建完成,
~~~ 之前旧的pod在清理阶段
[root@k8s-master01 nodejs-demo.bac]# kubectl get po -n nodejs-test -owide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
nodejs-demo-5dc6579587-gzws5 1/1 Running 0 12m 172.27.14.254 k8s-node02
nodejs-demo-f7ddcbc7b-cnvqd 1/1 Terminating 0 51m 172.25.244.230 k8s-master01
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor